# Source files for toadlet_flick_iismotiondevice
set (IOSMOTIONDEVICE_SRC
	IOSMotionDevice.mm
)


# Headers
set (IOSMOTIONDEVICE_HEADERS
	IOSMotionDevice.h
)


# Dynamic library
# Not available on iOS platforms


# Static library
find_library (UIKIT_LIBS UIKit)
add_library (toadlet_flick_iosmotiondevice_s STATIC ${IOSMOTIONDEVICE_SRC} ${IOSMOTIONDEVICE_HEADERS})
set_target_properties (toadlet_flick_iosmotiondevice_s PROPERTIES ${STATIC_LIB_PROPS})
target_link_libraries (toadlet_flick_iosmotiondevice_s objc ${UIKIT_LIBS} toadlet_flick_s)
install (TARGETS toadlet_flick_iosmotiondevice_s DESTINATION ${LIB_INSTALL_DIR})

# HACK: install the library on iOS. This will disappear once cmake issue:0012506 is resolved. 
if (TOADLET_PLATFORM_IOS)
    install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/\$ENV{CONFIGURATION}\$ENV{EFFECTIVE_PLATFORM_NAME}/ DESTINATION ${LIB_INSTALL_DIR} FILES_MATCHING PATTERN "*.a")
endif (TOADLET_PLATFORM_IOS)

